1
2 ///
<summary>
3 ///
Used to store info about a friend's online state and in which room he/she is.
4 ///
</summary>
5 public
class FriendInfo
6 {
7     
public string Name { get; internal protected set; }
8     
public bool IsOnline { get; internal protected set; }
9     
public string Room { get; internal protected set; }
10     
public bool IsInRoom { get { return IsOnline && !string.IsNullOrEmpty(this.Room); } }
11
12     
public override string ToString()
13     {
14         
return string.Format("{0}\t is: {1}", this.Name, (!this.IsOnline) ? "offline" : this.IsInRoom ? "playing" : "on master");
15     }
16 }


Used to store info about a friend's online state and in which room heshe is.




Trò chơi Tic-Tac-Toe, game đánh caro full source code 53.475 lượt xem

Gõ tìm kiếm nhanh...